@layout("/common/_container.html"){
<style>
    html{
        width:100%;
        overflow-x:hidden;
    }
    .approval{
        font-size: 14px;
        height: 100%;
        background: #F9F9F9;
    }
    .approvalHeader{
        height: 3.5em;
        line-height: 3.5em;
        position: fixed;
        background: white;
        width: 100%;
        z-index: 1;
        border-bottom: 1px solid #E5E5E5;
        padding: 0 1em;
        display: flex;
    }
    .approvalHeader > div{
        flex: 1;
        color: #00a6c9;
    }
    .approvalHeader > div:nth-child(2){
        color: black;
        text-align: center;
        font-size: 18px;
    }

    .approvalContent{
        height: 100%;
        position: relative;
        padding-top: 3.7em;
        background: white;
    }
    .approvalContent .approvalTab,.approvalContent .approvalFunction{
        display: flex;
        text-align: center;
    }
    .approvalContent .approvalTab > div,.approvalContent .approvalFunction > div{
        flex: 1;
        padding: 9px 0;
        font-size: 16px;
        border-bottom: 1px solid #cccccc;
    }
    .approvalContent .approvalTab > .TabSelection{
        color: #fe943e;
        border-bottom: 1px solid #fe943e;
    }
    .approvalContent #approvalTabContent > div{
        color: #999999;
        border-bottom: 1px solid #E5E5E5;
        display: flex;
        padding: 1em 0;
    }
    .approvalContent #approvalTabContent > div >div:first-of-type span{
        display: inline-block;
        width: 3em;
        height: 3em;
        background: red;
        border-radius: 50%;
        vertical-align: middle;
    }
</style>
<div class="approval">
    <div class="approvalHeader">
        <div onclick="patient()"><span class="glyphicon glyphicon-menu-left"></span></div>
        <div>审批</div>
        <div></div>
    </div>
    <div class="approvalContent">
        <div class="approvalTab">
            <div onclick="pendingApproval()" class="TabSelection">待审批 (<span>0</span>)</div>
            <div onclick="alreadyApproved()">已审批 (<span>0</span>)</div>
        </div>
        <div class="approvalFunction" style="display: none">
            <div style="border: none">搜索</div>
            <div style="border: none">筛选</div>
        </div>
        <div id="approvalTabContent">
            <div onclick="approvalInformation()">
                <div style="width: 20%;text-align: center;padding-top: 5px;">
                    <span></span>
                </div>
                <div style="width: 80%">
                    <h3 style="color: initial;">刘狗子提交的渠道审批</h3>
                    <div>患者姓名：刘狗子</div>
                    <div>患者号码：13872448282</div>
                </div>
            </div>
            <div onclick="approvalInformation()">
                <div style="width: 20%;text-align: center;padding-top: 5px;">
                    <span></span>
                </div>
                <div style="width: 80%">
                    <h3 style="color: initial;">刘狗子提交的渠道审批</h3>
                    <div>患者姓名：刘狗子</div>
                    <div>患者号码：13872448282</div>
                </div>
            </div>
            <div onclick="approvalInformation()">
                <div style="width: 20%;text-align: center;padding-top: 5px;">
                    <span></span>
                </div>
                <div style="width: 80%">
                    <h3 style="color: initial;">刘狗子提交的渠道审批</h3>
                    <div>患者姓名：刘狗子</div>
                    <div>患者号码：13872448282</div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    function patient() {
        window.location.href = Feng.ctxPath + "/reservation/market_approval";
    }
    function pendingApproval() {
        $(".approvalTab > div").eq(0).addClass('TabSelection').siblings().removeClass('TabSelection');
    }
    function alreadyApproved() {
        $(".approvalTab > div").eq(1).addClass('TabSelection').siblings().removeClass('TabSelection');
    }
    function approvalInformation() {
        window.location.href = Feng.ctxPath + "/reservation/market_approvalInformation";
    }
</script>
@}
